import java.lang.reflect.Array;

public class Test11 {
    public static void main(String[] args) {
        int[] arr = new int[]{1,2,3,4,5};

        try {
            for (int i = 0; i <= arr.length; i++) {
                System.out.println(arr[i]);
            }
        } catch (ArrayIndexOutOfBoundsException e) {
//            System.out.println("数组下标越界");
            e.printStackTrace();
        } finally {
            System.out.println("end");
        }
    }
}
